home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / clonecd / September 93.img / Archives / Personal / Minaret-13 / Minaret.doc < prev   
Text File  |  1989-09-29  |  13KB  |  282 lines

  1.  
  2.                         M I N A R E T
  3.                         -------------
  4.  
  5. This Macintosh program computes Islamic prayer schedules, the
  6. direction of the Qibla, and various data related to the Hijri
  7. calendar. 
  8.  
  9. You may freely give copies of this program to others.  Please give
  10. only unmodified copies to others, and include this documentation
  11. with the program.  If you decide to keep the program for yourself,
  12. please send $10 to: 
  13.  
  14.               Kamal Abdali 
  15.               P.O. Box 65207 
  16.               Washington, DC 20035 
  17.               USA.
  18.  
  19.  
  20. The Place menu 
  21. --------------
  22.  
  23. This is the first menu you should look at.  Minaret contains a
  24. built-in gazetteer with geographical information about 170 cities
  25. initially.  At any time, one of these is the Current Location for
  26. which all computations are done.  To specify any location as the
  27. Current Location, click on the "Select location" item in the Place
  28. menu.  A large window will appear in which the list at left is the
  29. Gazetteer.  As you scroll through this list and click on various
  30. location names, the stored data about them appears in the boxes at
  31. right.  If your desired location is in the Gazetteer, select it, 
  32. then press "Make it Current Location".  All subsequent 
  33. computations will be done for that city, even when you exit and 
  34. relaunch Minaret. 
  35.  
  36. You can edit the Gazetteer to add and delete locations, and to
  37. modify information about existing locations.  By editing the boxes
  38. and setting radio buttons at right, you can supply the 
  39. geographical data about the cities you wish to add.  You will need 
  40. to know the latitude, longitude, zone time relative to Greenwich, 
  41. and whether or not the place observes Daylight Savings Time.  
  42. After filling in the information for each city, press "Update/add 
  43. this location".  To delete a location, select it in the Gazetteer, 
  44. then press "Remove this location".  Only 200 cities are allowed in 
  45. the Gazetteer, so you may need to delete some locations to make 
  46. room for others.  You can find out how many cities are already in 
  47. the Gazetteer by selecting the "Gazetteer size" item. 
  48.  
  49. Note: Editing the Gazetteer doesn't change the current location.  
  50. If you want to do computations for a city not in the Gazetteer, 
  51. first edit the Gazetteer to add that city, then make the city the  
  52. Current Location. 
  53.  
  54. The changes made to the Gazetteer by editing it accumulate from
  55. session to session.  To revert to the original Gazetteer supplied
  56. with the program, use the the menu item "Restore factory-set
  57. gazetteer".  You may like to do this before any other computation 
  58. in case your copy of Minaret is not an original distribution from 
  59. the author, and you're not sure of the validity of the stored 
  60. data. 
  61.  
  62. Note: At the time of quitting a Minaret session in which you've
  63. edited the Gazetteer, you have the option of saving or discarding
  64. the changes you've made within that session.  Should you respond
  65. "Discard", the Gazetteer remains unchanged for that session.  On 
  66. the other hand, "Restore factory-set gazetteer" throws away the 
  67. changes accumulated through all the previous sessions in which the
  68. Gazetteer was edited. 
  69.  
  70.  
  71. The Prayer Hours menu 
  72. ---------------------
  73.  
  74. Select "Prayer hours for today" or "Prayer hours for another day" 
  75. to get the five prayer hours plus the time of sunrise.  (Be sure 
  76. to first set your location using the Place menu.)  For the latter
  77. selection, Minaret will first present you a dialog box in which 
  78. you should fill in the date for which the prayer hours are 
  79. desired.  (Click on "OK" after filling in the date.)  If you hear 
  80. a beep at this point, then you have typed either an illegal date 
  81. or a date outside the period 1901--2100 A.D.
  82.  
  83. Select "Prayer hours for a month" or "Prayer hours for a year" to
  84. display a table of prayer hours in a text window.  Minaret will 
  85. first present you a dialog box in which you should fill in the 
  86. month or the year for which the schedule is desired.  For a 
  87. "perpetual" schedule for a year, type "0" (zero) for the year.  
  88. Perpetual schedules are further discussed below.  
  89.  
  90. You can print the contents of the text window in front by 
  91. selecting "Print" from the File menu.  By using the "Save" or 
  92. "Save as" item from the File menu, you can save into a file the 
  93. contents of the text window in front, for possible reformatting 
  94. with a word processor.  If you use MacWrite for printing a 
  95. schedule, then set the font to Monaco (or some other monospaced 
  96. font) before opening the file.  This will keep the tabular columns 
  97. neatly aligned. 
  98.  
  99. The printout of the results from the menu selections "Prayer 
  100. schedule for a month" and "Prayer schedule for a year" contain a 
  101. single month's schedule per page.  If you have access to the 
  102. text-formatting system TeX (developed by Professor Knuth of 
  103. Stanford University), then you can print a much prettier prayer 
  104. schedule for a year by running TeX on a file generated by Minaret.  
  105. This schedule comes out on three pages, four months per page.  For 
  106. this, first select "TeX input for prayer hours for a year" from 
  107. the Prayer menu, and fill in the year (or 0 for a perpetual 
  108. schedule).  Minaret will generate TeX code for the schedule, and 
  109. display it in a new window.  Then select "Save As" from the File 
  110. menu, choose an appropriate drive and folder, and type a suitable 
  111. document name (for example, "schedule.tex") to save the window 
  112. contents.  You have now captured the TeX input which you can later 
  113. process according to the instructions specific to your TeX system.
  114.      
  115. Since prayer hours depend upon the sun's position, it is more
  116. practical to tabulate the Islamic prayer schedule according to the
  117. dates in the Western, solar calendar.  For a fixed location, 
  118. prayer times for any particular date in the Western calendar vary 
  119. very little from year to year, and for all practical purposes 
  120. repeat themselves in four year cycles.  (Find this out for 
  121. yourself by computing prayer hours for the same dates in different 
  122. years.)  If you want to print annual prayer schedules, I strongly 
  123. recommend using zero for the year.  This doesn't mean the year 
  124. zero B.C. or A.D., but is a special value to cause Minaret to 
  125. print a perpetual calendar in which the times are essentially the 
  126. average of the four years of a cycle.  It is silly to print a new 
  127. calendar every year, since the yearly variation is seldom more 
  128. than two minutes. 
  129.  
  130. If, according to the gazetteer, the Current Location observes
  131. Daylight Saving Time, then Minaret adds one hour to all times
  132. computed for the dates between the first Sunday of April and the
  133. last Saturday of October (inclusive).  If the year is zero (that 
  134. is, if a perpetual schedule is desired), then the adjustment is 
  135. made throughout the period from April to October. 
  136.  
  137. Islamic prayer times are computed from their well-known
  138. astronomical  definitions.  (See, for example, the appendices A 
  139. and B in "Prayer Schedules for North America", American Trust
  140. Publications, Indianapolis, Indiana, 1978.)  Under certain
  141. conditions (for example, on certain summer dates at very high
  142. latitudes), the traditional astronomical definitions do not work,
  143. and the equations defining prayer times do not have solutions. 
  144. Minaret prints "??" when it cannot compute a  prayer time.  (See
  145. also the description of Method menu below.) 
  146.  
  147.  
  148. The Qibla menu 
  149. --------------
  150.  
  151. Select "Angle from North" to find the direction of the Qibla.  (Be 
  152. sure to first set your location using the Place menu.)   The angle 
  153. is given from the geographical, not magnetic, North.  Since it is 
  154. not always easy to accurately either determine North or measure
  155. angles, the shadow method described below is generally a better
  156. way to determine the Qibla. 
  157.  
  158. "Shadow diagram for a day" lets you determine the Qibla by
  159. observing shadows, without having to know the North direction. 
  160. You get a diagram which shows the directions in which the shadow
  161. of a vertical object points at certain times of the day.  One of 
  162. the lines in the diagram is marked with a Q.  This is the 
  163. direction of the Qibla.  The times have been so computed that the 
  164. angle between the Qibla and the shadow is a multiple of 45 
  165. degrees, quite easy to measure.  (If there is a time on the line 
  166. marked Q, then the Qibla is exactly in the same direction as the 
  167. shadow at that time, and you don't have to measure any angle.)  
  168. Experiment with this menu using different dates to see the 
  169. relation between the Qibla and the shadow.  Summer dates give you 
  170. more opportunities to determine the Qibla using the shadow method. 
  171.  
  172. Select "Shadow chart for a month" or "Shadow chart for a year" to 
  173. display tables of the shadow information in a text window.  See 
  174. remarks under the Prayer menu for printing and saving the contents 
  175. of the window. 
  176.  
  177. Note:  The computed value of the qibla is not meaningful for
  178. locations very close to the Ka'aba (or its antipode in the Pacific
  179. Ocean), e.g., for the city of Makkah. 
  180.  
  181.  
  182. The Calendar menu 
  183. -----------------
  184.  
  185. Select "Date conversion" to convert Hijri dates into Western ones,
  186. and vice versa.  Minaret will accept as input any date starting 
  187. from Muharram 1, 1 A.H. (July 16, 622 A.D.), but will beep at any 
  188. illegal or earlier date.  The conversion is approximate, based on 
  189. the optimistic assumption that the lunar crescent would become 
  190. visible 18 hours after the astronomical new moon phase. 
  191.  
  192. Select "New moon phase" to get the time of the astronomical new
  193. moon phase just preceding the start of any Hijri month.  Minaret
  194. computes the time of this phenomenon with an accuracy of about
  195. three minutes, and displays it both as the Greenwich Mean Time and
  196. as the Zone time for the Current Location.  Remember that the moon
  197. is invisible at the astronomical new moon phase, and the formation
  198. of the visible lunar crescent takes anywhere from about 18 to
  199. about 42 hours.  Although a few younger sightings of the moon have 
  200. been reported, they are extremely rare, and would be possible only 
  201. under certain special circumstances.  
  202.  
  203. Select "Moon's age" to determine the age of moon at any desired 
  204. time on any date in the period 1901--2100 A.D.  To predict whether 
  205. the lunar crescent will be visible on a certain evening, you can 
  206. find the time of sunset on that date by selecting "Prayer schedule 
  207. for another day" in the Prayer hours menu, then find the moon's 
  208. age at that time by selecting "Moon's age" in the Calendar menu.  
  209. If the age turns out to be less than 18 hours, then it is quite 
  210. unlikely that the crescent will be visible that evening.  Of 
  211. course, the first visibility of the crescent depends on several 
  212. other factors too. 
  213.  
  214. The Method menu 
  215. ---------------
  216.  
  217. There are some variations in the methods people use to compute
  218. certain prayer times.  This menu lets you select the methods
  219. according to your preference. 
  220.  
  221. The "shadow ratio" for a vertical object at any time is defined to
  222. be the quantity: 
  223.  
  224.   (the length of shadow at the given time — the "residual" shadow 
  225.   of the object at noon) / (the object height). 
  226.  
  227. The shadow ratio at asr time is taken to be 2 by the Hanafi 
  228. school, 1 by others.  For fajr and isha, the time is usually 
  229. determined by the Sun's angle of depression below the horizon.  
  230. If this value is taken to be 18 degrees, then fajr coincides with 
  231. the astronomical twilight.  This seems OK for temperate latitudes. 
  232. But at higher latitudes, say above 42 degrees, the resulting times 
  233. for fajr and isha are too inconvenient (fajr too early, and isha 
  234. too late).  ISNA schedules are computed by taking this angle as 15 
  235. degrees. 
  236.  
  237. At latitudes higher than 50 degrees, such as for cities in 
  238. Northern Europe, it is impossible on certain dates to determine 
  239. fajr and isha times by taking the value of the sun's depression to 
  240. be 18 (or even 15) degrees.  This is so because on those dates the 
  241. sun doesn't descend sufficiently below the horizon.  So people in 
  242. some of those cities compute the fajr and isha times to be at 90 
  243. minutes from sunrise/sunset.  For latitudes above 66 1/2 degrees, 
  244. of course, even sunrise and sunset are not always defined. 
  245.  
  246.  
  247. The File Menu 
  248. -------------
  249.  
  250. Use this menu to open, save, and print the monthly or yearly 
  251. prayer schedules and qibla charts computed by Minaret.  When text 
  252. files are printed using "Print" in this menu, the RETURN (ascii 
  253. 13) and FORMFEED (ascii 12) characters will cause line skip and 
  254. page eject, respectively.  The File menu is intended only for use 
  255. with the text files generated by Minaret.  In particular, it will 
  256. not work on non-text files, large text files (more than 32K 
  257. characters), or text files with very long lines. 
  258.  
  259.  
  260. Any Comments? 
  261. --------------
  262.  
  263. Please send your comments, suggestions, and bug reports to the
  264. author at the address given above.  They will be greatly
  265. appreciated.  Please include your address in any correspondence. 
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.